import {config} from "@/api/common.js"
import Vue from "vue"
export default {
	namespaced: true,
	state: {
		showAi:false,
	},
	getters: {

	},
	mutations: {
		
	},
	actions: {
		// 是否显示开关
		getAiSwitch({state}){
			// uni.showModal({
			// 	title:'123'
			// })
			config({
				key: 'ai_switch'
			}).then(res => {
				state.showAi = res.data[0].value == 1?true:false;
			})
		}
	},
}